#!/usr/bin/python
#coding:utf-8
import os

def get_xml(url):
    os.system("wget "+url)

def main():
    i = 376
    os.chdir("SVN-XML")
    while i <= 4266:
        url = "https://issues.apache.org/jira/si/jira.issueviews:issue-xml/SVN-%d/SVN-%d.xml" % (i, i)
        get_xml(url)
        i += 1

if __name__ == '__main__':
    main()
